using System;
using Kollektiv.DB;

namespace Kollektiv.DataModel
{
	public class LanguageRepository:DataRepository<Language>
	{
        public LanguageRepository(DataManager manager)
            : base(manager)
		{
		}
		
		public Language Create (string iso)
		{
			Language language = new Language (){ISO=iso};
			
			this.SaveOrUpdate (language);
			
			return language;
		}
	}
}

